<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2023/10/7
  Time: 9:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--引入标准标签库 JSTL：Java Standard Tag Libruary--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>列学学生</title>
    <%--1. 引入jquery--%>
    <script src="webjars/jquery/3.6.4/jquery.min.js"></script>
    <%--2. 引入bootstrap的css样式--%>
    <link rel="stylesheet" href="webjars/bootstrap/3.4.1/css/bootstrap.min.css">
    <%--3. 引入bootstrap的js库--%>
    <script src="webjars/bootstrap/3.4.1/js/bootstrap.min.js"></script>

    <style>
        .table{
            text-align: center;
        }
        .panel-title{
            font-size: 20px;
            padding: 10px 0px;
        }
    </style>
</head>
<body>
   <div class="container">
       <div class="panel panel-primary">
           <div class="panel-heading">
               <h3 class="panel-title">
                   学生列表
               </h3>
           </div>
           <table class="table table-striped table-hover">
               <tr>
                   <td>学号</td>
                   <td>姓名</td>
                   <td>性别</td>
                   <td>年龄</td>
                   <td>住址</td>
                   <td>班级名称</td>
                   <td>操作</td>
               </tr>
               <c:forEach items="${students}" var="stud">
               <tr>
                   <td>${stud.sid}</td>
                   <td>${stud.sname}</td>
                   <td>${stud.sex}</td>
                   <td>${stud.age}</td>
                   <td>${stud.addr}</td>
                   <td>${stud.cid}</td>
                   <td>
                       <a href="#" class="btn btn-success btn-sm">修改</a>
                       <a href="#" class="btn btn-danger btn-sm">删除</a>
                   </td>
               </tr>
               </c:forEach>
           </table>
           <div class="panel-footer text-right">
               SM整合2023.
           </div>
       </div>
   </div>
</body>
</html>
